var RockitJS = new Object();

RockitJS.Package = function () {

    var libraryPath = "library/rockitjs/";

    var createScriptElement = function(file) {

        var js = document.createElement("script");
        var head = document.getElementsByTagName("head").item(0);

        js.type = "text/javascript";
        js.src = libraryPath + file + ".js";
        head.insertBefore(js, head.lastChild.previousSibling);
    };

    this.load = function(files) {

        if ((typeof files) === "string") {

            createScriptElement(file);
        } else if ((typeof files) === "object") {

            while(file = files.shift()) {
                createScriptElement(file);
            }
        }
    };
};